package com.share.netdisk.garbage.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("file")
public class Garbage {

	@TableId(value = "file_id", type = IdType.AUTO)
	private Integer fileId;

	@TableField("parent_id")
	private Integer parentId;
	@TableField("home_file_id")
	private Integer homeFileId;
	@TableField("file_name")
	private String fileName;
	@TableField("file_url")
	private String fileUrl;
	@TableField("type_id")
	private Integer typeId;
	@TableField("reclaim_status")
	private Integer reclaimStatus;
	@TableField("share_status")
	private Integer shareStatus;
	@TableField("file_status")
	private Integer fileStatus;
	@TableField("file_size")
	private Integer fileSize;

	@JsonFormat(pattern = "yyyy-MM-dd")
	@TableField("create_time")
	private Date createTime;

	@JsonFormat(pattern = "yyyy-MM-dd")
	@TableField("update_time")
	private Date updateTime;

}